﻿<Application x:Class="Mengsk.ProxyDelivery.App.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             ShutdownMode="OnExplicitShutdown"
             xmlns:converters="clr-namespace:Mengsk.ProxyDelivery.Converters;assembly=Mengsk.ProxyDelivery"
             xmlns:mashmetro="http://metro.mahapps.com/winfx/xaml/controls"
             >
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Blue.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style TargetType="Button" BasedOn="{StaticResource ResourceKey=MetroButton}">
                <Setter Property="FontWeight" Value="Normal"/>
                <Setter Property="FontSize" Value="13"/>
            </Style>

            <converters:BoolConverter x:Key="boolConverter"/>
            <converters:EnumConverter x:Key="descriptionConverter"/>
            <converters:WebUrlImageConverter x:Key="webUrlImageConverter"/>
            <converters:VendorConverter x:Key="vendorConverter"/>
            <converters:SellerConverter x:Key="sellerConverter"/>
            <converters:IntConverter x:Key="intConverter"/>
            <converters:WarehouseConverter x:Key="warehouseConverter"/>
            <converters:DateTimeConverter x:Key="datetimeConverter"/>
            <converters:SellerMoneyConverter x:Key="sellerMoneyConverter"/>
            <converters:ShoesCommentConverter x:Key="shoesCommentConverter"/>
            <converters:OrderErrorCodeConverter x:Key="orderErrorCodeConverter"/>
            <converters:OrderReceiverInfoConverter x:Key="orderReceiverInfoConver"/>
            <converters:OrderChangeImageCountConverter x:Key="orderChangeImageCountConverter"/>
            <converters:OrderChangeImageColorConverter x:Key="orderChangeImageColorConverter"/>
            <converters:VendorDoorConverter x:Key="vendorDoorConverter"/>
            <Style x:Key="SelectableTextBox" TargetType="TextBox">
                <Setter Property="Background" Value="Transparent"/>
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="IsReadOnly" Value="True"/>
                <Setter Property="TextWrapping" Value="Wrap"/>
            </Style>


            <Style x:Key="TextButton" TargetType="Button">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="Button">
                            <TextBlock >
                                 <ContentPresenter /></TextBlock>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
                <Setter Property="Foreground" Value="Blue" />
                <Style.Triggers>
                    <Trigger Property="IsMouseOver" Value="true">
                        <Setter Property="Cursor" Value="Hand"/>
                    </Trigger>
                </Style.Triggers>

            </Style>
            
            <Style x:Key="HrefText" TargetType="TextBlock">
                <Setter Property="Foreground" Value="Blue" />
                <Style.Triggers>
                    <Trigger Property="IsMouseOver" Value="true">
                        <Setter Property="Cursor" Value="Hand"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
            
            
        </ResourceDictionary>


    </Application.Resources>

</Application>
